package com.tencent.sr.iris.activity.interfaces.message;

/**
 * 描述用途
 *
 * @author wruiiwang
 * @date 2023/2/17
 */

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

@Getter
@Setter
@Accessors(chain = true)
@ToString
public class CommissionChangeEvent {

    public static final String COL_ID = "id";
    public static final String COL_RUN_TIME_KEY = "run_time_key";
    public static final String COL_ORDER_TIME = "order_time";
    public static final String COL_UID = "uid";
    public static final String COL_ACTUAL_SALES_INCOME_AMT_ALL = "actual_sales_income_amt_all";
    public static final String COL_SALES_INCOME_AMT_ALL = "sales_income_amt_all";
    public static final String COL_UPDATE_TIME = "update_time";
    public static final String COL_ETL_STAMP = "etl_stamp";
    public static final String COL_SALES_AMT = "sales_amt";

    private Long id;
    @ApiModelProperty("跑数批次时间,格式：YYYYMMDDHHFF")
    private String runTimeKey;
    @ApiModelProperty("下单日期,格式：YYYY-MM-DD")
    private String orderTime;
    @ApiModelProperty("uid")
    private String uid;
    @ApiModelProperty("实际基础加码总收益")
    private Double actualSalesIncomeAmtAll;
    @ApiModelProperty("基础加码总收益")
    private Double salesIncomeAmtAll;
    @ApiModelProperty("更新时间")
    private String updateTime;
    @ApiModelProperty("etl处理时间戳")
    private String etlStamp;
    @ApiModelProperty("有效gmv")
    private Double salesAmt;

    public String idempotent() {
        return uid + "_" + etlStamp + "_" + runTimeKey + "_" + orderTime;
    }
}
